package com.zygh.policeasset.pojo;

import cn.afterturn.easypoi.util.PoiElUtil;
import java.util.List;

/* loaded from: police-asset-2.0-0.0.1-SNAPSHOT.jar:BOOT-INF/classes/com/zygh/policeasset/pojo/Menu.class */
public class Menu {
    private int id;
    private String name;
    private int parentId;
    private String path;
    private String icon;
    private List<Menu> children;
    private String permission;
    private Integer type;

    public void setId(int id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public void setChildren(List<Menu> children) {
        this.children = children;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof Menu)) {
            return false;
        }
        Menu other = (Menu) o;
        if (!other.canEqual(this) || getId() != other.getId()) {
            return false;
        }
        Object this$name = getName();
        Object other$name = other.getName();
        if (this$name == null) {
            if (other$name != null) {
                return false;
            }
        } else if (!this$name.equals(other$name)) {
            return false;
        }
        if (getParentId() != other.getParentId()) {
            return false;
        }
        Object this$path = getPath();
        Object other$path = other.getPath();
        if (this$path == null) {
            if (other$path != null) {
                return false;
            }
        } else if (!this$path.equals(other$path)) {
            return false;
        }
        Object this$icon = getIcon();
        Object other$icon = other.getIcon();
        if (this$icon == null) {
            if (other$icon != null) {
                return false;
            }
        } else if (!this$icon.equals(other$icon)) {
            return false;
        }
        Object this$children = getChildren();
        Object other$children = other.getChildren();
        if (this$children == null) {
            if (other$children != null) {
                return false;
            }
        } else if (!this$children.equals(other$children)) {
            return false;
        }
        Object this$permission = getPermission();
        Object other$permission = other.getPermission();
        if (this$permission == null) {
            if (other$permission != null) {
                return false;
            }
        } else if (!this$permission.equals(other$permission)) {
            return false;
        }
        Object this$type = getType();
        Object other$type = other.getType();
        return this$type == null ? other$type == null : this$type.equals(other$type);
    }

    protected boolean canEqual(Object other) {
        return other instanceof Menu;
    }

    public int hashCode() {
        int result = (1 * 59) + getId();
        Object $name = getName();
        int result2 = (((result * 59) + ($name == null ? 43 : $name.hashCode())) * 59) + getParentId();
        Object $path = getPath();
        int result3 = (result2 * 59) + ($path == null ? 43 : $path.hashCode());
        Object $icon = getIcon();
        int result4 = (result3 * 59) + ($icon == null ? 43 : $icon.hashCode());
        Object $children = getChildren();
        int result5 = (result4 * 59) + ($children == null ? 43 : $children.hashCode());
        Object $permission = getPermission();
        int result6 = (result5 * 59) + ($permission == null ? 43 : $permission.hashCode());
        Object $type = getType();
        return (result6 * 59) + ($type == null ? 43 : $type.hashCode());
    }

    public String toString() {
        return "Menu(id=" + getId() + ", name=" + getName() + ", parentId=" + getParentId() + ", path=" + getPath() + ", icon=" + getIcon() + ", children=" + getChildren() + ", permission=" + getPermission() + ", type=" + getType() + PoiElUtil.RIGHT_BRACKET;
    }

    public int getId() {
        return this.id;
    }

    public String getName() {
        return this.name;
    }

    public int getParentId() {
        return this.parentId;
    }

    public String getPath() {
        return this.path;
    }

    public String getIcon() {
        return this.icon;
    }

    public List<Menu> getChildren() {
        return this.children;
    }

    public String getPermission() {
        return this.permission;
    }

    public Integer getType() {
        return this.type;
    }
}